<?php
$n = 0;
echo '<?php' . PHP_EOL;
echo 'return array(' . PHP_EOL;
if(isset($models))
	foreach ($models as $model){
		echo '\''.get_class($model).'_'. ++$n . '\' => array(' . PHP_EOL ;
		foreach ($model->attributes as $attr => $value){
			echo "\t'$attr' => '$value',\n";
		}
		echo '),'.PHP_EOL;
	}

echo ');';
